﻿using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using pandx.Mulan.Books.Dto;
using pandx.Mulan.Dto;

namespace pandx.Mulan.Books
{
    public interface IBookAppService
    {
        Task<PagedResultDto<BookListDto>> ObtainBooks(ObtainBooksInput input);
        Task CreateOrUpdateBook(CreateOrUpdateBookInput input);
        Task<GetBookForEditOutput> GetBookForEdit(NullableIdDto<long> input);
        Task<BookListDto> GetBook(EntityDto<long> input);
        Task DeleteBook(EntityDto<long> input);
        Task<FileDto> ObtainBooksToExcel(ObtainBooksInput input);
    }
}
